<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>管理首页|HDCMS_EDU后台登录</title>
    <hdjs/>
    <link rel="stylesheet" type="text/css" href="__CONTROLLER_VIEW__/Css/css.css">
    <script src="__PUBLIC__/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
    <script>
        //两种变量赋值建议用第二种，因为伪静态目录可能会更改
        var code="{|U:'Login/code'}/";
        var CONTROLLER="__CONTROLLER__";
    </script>
    <script type="text/javascript" src="__CONTROLLER_VIEW__/Js/js.js"></script>



    <!--hdjs载入-->
    <link rel="stylesheet" type="text/css" href="__STATIC__/hdjs/hdjs.css"/>
    <script src="__STATIC__/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
    <jsconst/>

    <script type="text/javascript">
    $(function(){
        $('.hd-form').validate({
            //表单Name值
            username: {
                    //规则
                    rule: {
                        //必填
                        required: true,
                        regexp: /^[a-zA-Z]\w{3,9}$/,
                        ajax:{url:MODULE + '&c=Login&a=ajax_check_name'}
                    },
                    //错误信息
                    error: {
                        required: '用户名不能为空',
                        regexp : '用户名以字母开始4到10位'
                    },
                    success: '验证通过',
                    message: '请输入用户名'
               },
            
            //验证码验证
           code : {
                //规则
                rule: {
                    //必填
                    required: true,
                    ajax:{url:MODULE + '&c=Login&a=ajax_check_code'}
                },
                //错误信息
                error: {
                    required: '验证码不能为空',
                    ajax : '验证码错误'
                },
                success: '验证通过',
                message: '请输入验证码'
           }


        });
        
    })
    </script>
</head>
<body>
<div class="header">
    <div class="links">
        <a href="http://www.houdunwang.com">后盾网PHP培训</a> |
        <a href="http://www.hdphp.com">HDCMS</a>
    </div>
</div>
<div class="main">
    <div class="pics">
    </div>
    <div class="login" style="height:400px">
        <div class="title">
            后台登录
        </div>
        <div id="tips" class="tips"></div>
        <div class="web_login">
            <div class="login_form">
                <div id="error_tips" class="error_tips">
                    <span id="error_logo" class="error_logo"></span>
                    <span id="err_m" class="err_m">12</span>
                </div>
                <form action="{|U:'Login/index'}" method="post" class="form-inline hd-form" >
                    <div class="input">
                        <div class="inputOuter">
                            <span id="hd_username"></span>
                            <input type="text" name="username" title="帐号" value="帐号" class="empty w300"/>
                        </div>
                    </div>
                    <div class="input">
                        <div class="inputOuter">
                            <br>
                            <input type="password" name="password">
                        </div>
                    </div>
                    <div class="input">
                        <div class="inputOuter">
                            <br>
                            <span id="hd_code"></span>
                            <input type="text" name="code" title="验证码" value="验证码" class="empty"/>
                        </div>
                    </div>

                    <div class="verifyimgArea">
                        <br><br>
                        <img src="{|U:'Login/code'}" class="code" style="cursor: pointer;float:left;"
                             onclick=""/>
                        <a href="javascript:void(0);">看不清，换一张</a>
                    </div>
                    <div class="send">
                        <input type="submit" class="btn2" value="登录"/>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
</body>
</html>